//
//  NewsHomePageViewController.m
//  RoadKnowEntertainment
//
//  Created by lanou on 16/8/5.
//  Copyright © 2016年 RKE. All rights reserved.
//

#import "NewsHomePageViewController.h"
#import "NinaPagerView.h"
#import "UIView+ViewController.h"


@interface NewsHomePageViewController ()

@end

@implementation NewsHomePageViewController

- (void)viewWillAppear:(BOOL)animated {
    self.tabBarController.navigationItem.title = @"新闻";
}

- (void)viewDidLoad {
//    NSLog(@"%@", self.navigationItem);
    [super viewDidLoad];
    self.title = @"新闻";
//    self.tabBarItem.badgeValue = @"99+";
    
    
    NSArray *titleArray = @[@"头条", @"娱乐", @"时尚", @"体育", @"科技"];
    NSArray *colorArray = @[[UIColor redColor], [UIColor blackColor], [UIColor redColor], [UIColor whiteColor]];
    //选中字 非选中字 下划线 背景色
    NSArray *controllerArray = @[@"TopStoriesViewController", @"EntertainmentViewController", @"FashionViewController", @"SportsViewController", @"TechnologyViewController"];
    NinaPagerView *nina = [[NinaPagerView alloc] initWithNinaPagerStyle:NinaPagerStyleBottomLine WithTitles:titleArray WithVCs:controllerArray WithColorArrays:colorArray];
    nina.pushEnabled = YES;
    [self.view addSubview:nina];
    nina.PageIndex = @"1";
    
    self.navigationController.navigationBarHidden = NO;
    self.navigationController.navigationBar.translucent = NO;
    
    
    // 爆炸！！！！！！！！！！！！！！！！！！！！！！！
    
    
    
    
}




@end
